<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar showPerson :datas="{formData: form}" personType="PERSON_AAC031_1" psTagType="PERSON_AAB001_GROUP">
                <ep-button size="small" name="打印"></ep-button>
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
             <epl-userMessage dataType="person" idCount="2" :panel="panel">
                    <epl-tableList :tableHeader="['险种','补退费金额','补退费月数','调整前缴费基数','调整后缴费基数']" :rowName="['aae140','aae180','status','month','sum']" type="prop">
             <template slot-scope="scope">
                        <epl-TableListColumn type="hui">{{scope.row.aae140}}</epl-TableListColumn>
                        <epl-TableListColumn type="red">{{scope.row.aae180}}</epl-TableListColumn>
                        <epl-TableListColumn type="blue">{{scope.row.status}}</epl-TableListColumn>
                        <epl-TableListColumn type="blue">{{scope.row.month}}</epl-TableListColumn>
                        <epl-TableListColumn type="blue">￥{{scope.row.sum}}</epl-TableListColumn>
                    </template>
                </epl-tableList>
            </epl-userMessage>
             <el-collapse v-model="activeNames" >
                <el-collapse-item  title="请输入基础信息" name="1">
            <el-card class="ep-card">
                <el-form :model="form" :rules="rules" ref="form">
                <el-row>
                   <ep-select colspan="8" label="调整类型" name="aaa115" :property="form.aaa115" 
                                           placeholder="请选择调整类型" codetype="AAA115" p="H"
                                           :datas="{formData:form}"></ep-select>
                 <ep-input colspan="8" label="征收方式" name="aae005" :property="form.aae005" 
                                          placeholder="请输入征收方式" p="H"
                                          :datas="{formData:form}" isChange></ep-input>
                 <epl-search-input colspan="8" label="统一社会信用代码" name="aab000" :property="form.aab000" type="company" placeholder="请输入统一社会信用代码" p="R"
                                    tagType="COMPANY_AAB000_EXACT" api="/business/d100insiup/d01companycommon/CpQueryComm/doCpQueryComm01" :datas="{formData:form, searchType:'aab000'}"
                                    rules="this.$rules.test_noBlank">
                                    <epl-search-input-item header="单位名称" name="aab069"></epl-search-input-item>
                                    <epl-search-input-item header="统一社会信用代码"  name="bab010"></epl-search-input-item>
                                    <epl-search-input-item header="单位类型"  name="aab019"></epl-search-input-item>
                                    <epl-search-input-item header="单位状态"  name="aaa120"></epl-search-input-item>
                                    <epl-search-input-item header="当前参保险种"  name="aae140"></epl-search-input-item>
                                </epl-search-input>
                 <ep-input colspan="16" label="单位名称" name="aab069" :property="form.aab069"
                                            p="D"
                                           :datas="{formData:form}"></ep-input>
                 
                </el-row>
                 <el-row :gutter="10">
                <ep-dateTime colspan="8" label="调整时间 " name="aae030" :property="form.aae030" p="R" 
                            :datas="{formData:form}" format="yyyyMM"></ep-dateTime>
                <ep-select colspan="8" label="调整险种" name="aae140" :property="form.aae140" 
                                           placeholder="请选择险种" codetype="AAE140" p="R"
                                           :datas="{formData:form}"></ep-select>
                <ep-number colspan="8" label="申报工资" name="aac040" :property="form.aac040" 
                                           placeholder="请选择申报工资" codetype="AAC040" p="R"
                                           :datas="{formData:form}"></ep-number>
                </el-row>

                 <el-row :gutter="10">
                
                <ep-select colspan="8" label="调整当前基数" name="aae180" :property="form.aae180"
                                           placeholder="请选择当前基数" codetype="AAE180" p="H"
                                           :datas="{formData:form}"></ep-select>
               
                </el-row>
                
                 <el-row :gutter="10">
                        <ep-textarea :rows="3" colspan="24" label="备注" name="bae582" :property="form.bae582" placeholder="请输入备注"
                            p="E" :datas="{formData: form}"></ep-textarea>
                    </el-row>
                    </el-form>
                       </el-card>
                </el-collapse-item>
               <el-collapse-item  title="原有缴费信息" name="1">
            <el-card class="ep-card">
                <el-row>
                    <ep-table :data="tableData" border style="width: 100%;" rowDbClick :titleFilter="demo">
                        <ep-table-column editor="index" width="85"  header="序号">
                                        </ep-table-column>
                        <ep-table-column editor="checkbox" name="checked" header="选择" width="55"></ep-table-column> 
                         <ep-table-column editor="text" name="aac003" header="姓名" width="120"></ep-table-column>                           
                        <ep-table-column editor="select" name="aae140" codetype="AAE140" header="险种类型" width="140"></ep-table-column>  
                        <ep-table-column sortable editor="text"   name="aae180" header="缴费基数" width="140"></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae030" header="起始月份" width="140"></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae031" header="结束月份" width="140"></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae079" header="月数" width="120"></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae020" header="单位金额" width="140"></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae022" header="个人金额" width="140"></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae058" header="总金额" width="140"></ep-table-column>
                    </ep-table>
                </el-row>
                 </el-card>
                </el-collapse-item>
                <el-collapse-item  title="调整后基数信息" name="1">
            <el-card class="ep-card">
                <el-row>
                    <ep-table :data="tableData1" border style="width: 100%;" rowDbClick :titleFilter="demo">
                        <ep-table-column editor="index" width="85"  header="序号">
                                        </ep-table-column>                      
                        <ep-table-column editor="select" name="aae140" codetype="AAE140" header="险种类型" width="140"></ep-table-column>
                         <ep-table-column editor="select" name="aae005" codetype="AAE005" header="征收方式" width="140"></ep-table-column>  
                        <ep-table-column sortable editor="text"   name="aae180" header="缴费基数" width="140"></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae180new" header="调整基数" width="140"></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae002" header="费款所属期" width="160"></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae003" header="对应费款所属期" width="200"></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae079" header="月数" width="120" hidden></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae020" header="单位金额" width="140" hidden></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae022" header="个人金额" width="140" hidden></ep-table-column>
                        <ep-table-column sortable editor="text"   name="aae058" header="总金额" width="140" hidden></ep-table-column>
                        <ep-table-column sortable editor="text"   name="jieguo" header="处理结果" width="140" hidden></ep-table-column>
                    </ep-table>

                </el-row>
                
                  <div style="margin: 15px 0;"></div>
                <el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save" @formValidate="formValidate" :validate="['form']"
                                       :datas="{formData:form,tableData:tableData,tableData1:tableData, panel:panel}" name="保存"></ep-saveButton>
                </el-row>
            </el-card> 
                 </el-collapse-item>
            </el-collapse>
        </el-main>
    </el-main>
</template>



<script src="../js/PsBaseAdjustCalendarJS.js"></script>
